package services

import (
	"github.com/patrickmn/go-cache"
	"time"
)

var c *cache.Cache

func GetCache() *cache.Cache {
	if c != nil {
		return c
	}
	c = cache.New(5*time.Minute, 10*time.Minute)
	return c
}
